package com.jzo2o.customer.service.impl;

import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.mapper.WorkerCertificationAuditMapper;
import com.jzo2o.customer.model.domain.WorkerCertificationAudit;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.response.WorkerCertificationAuditResDTO;
import com.jzo2o.customer.service.IWorkerCertificationAuditService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jzo2o.mysql.utils.PageHelperUtils;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务人员审核表 服务实现类
 * </p>
 *
 * @author hzzz
 * @since 2025-01-15
 */
@Service
public class WorkerCertificationAuditServiceImpl extends ServiceImpl<WorkerCertificationAuditMapper, WorkerCertificationAudit> implements IWorkerCertificationAuditService {

    @Override
    public PageResult<WorkerCertificationAuditResDTO> getPage(WorkerCertificationAuditPageQueryReqDTO workerCertificationAuditPageQueryReqDTO) {

        return PageHelperUtils.selectPage(workerCertificationAuditPageQueryReqDTO,
                () -> baseMapper.queryList(workerCertificationAuditPageQueryReqDTO.getAuditStatus(),
                        workerCertificationAuditPageQueryReqDTO.getCertificationStatus(),
                        workerCertificationAuditPageQueryReqDTO.getIdCardNo(),
                        workerCertificationAuditPageQueryReqDTO.getName()));




    }
}
